﻿@using Webdiyer.WebControls.Mvc
@model PagedList<Dyd.BaseService.Monitor.Domain.PlatformManage.Model.tb_cluster_collect_version_model>
@{
    int i = 0;
    }
<table>
    <tr>
        <th>版本标识</th>
        <th>版本号</th>
        <th>名称</th>
        <th>创建时间</th>
        <th>操作</th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>@item.id</td>
            <td>@item.versionnum</td>
            <td>@item.zipfilename</td>
            <td>@item.versioncreatetime</td>
            <td>
                 @if (ViewBag.MaxVersion != item.versionnum)
                 {
                <input type="button" value="删除" onclick="Delete('@item.id')" />
               
                    <input type="button" value="启用当前版本" onclick="EnableThis('@item.id')" />
                 }
                 else
                 {
                     <b style="color:red">当前使用版本</b> 
                 }
            </td>
        </tr>
    }
</table>
<div class="total pt10">
    <div class="fl">共<em>@Model.TotalPageCount</em>页<em>@Model.TotalItemCount</em>条记录，当前为第<em>@Model.CurrentPageIndex</em>页</div>
    @Ajax.Pager(Model, new PagerOptions { PageIndexParameterName = "pageindex", ShowPageIndexBox = true, PageIndexBoxType = PageIndexBoxType.DropDownList, ShowGoButton = false }, new MvcAjaxOptions { UpdateTargetId = "List", HttpMethod = "Post" }, new { @class = "pager_page" })
</div>
